# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=geotagging
pkgver=0.7.2
pkgrel=1
pkgdesc="Photography geotagging tool"
url="https://github.com/jmlich/geotagging"
arch="x86_64 aarch64" # Limited by qt6-qtwebengine
license="GPL-3.0-or-later"
makedepends="
	cmake
	exiv2-dev
	qt6-qtbase-dev
	qt6-qttools-dev
	qt6-qtwebengine-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/jmlich/geotagging/archive/refs/tags/$pkgver.tar.gz
	fix-exiv2.patch
	"
options="!check" # No upstream test suite

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_DATADIR=/usr/share/geotagging

	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
8af30ea133fee81611316dae2f35e74376369f1b497e9d0dbd296b3f816f7ed01d350552d1e223269be5776b0beab4a3610e1c639f7097539e85ddfe1ae4804f  geotagging-0.7.2.tar.gz
f05cb172f704f4c5d03f98825a9788c0afb43d20d9adf39ce2ceaaa6cf60c4e29242b701f9296bc77035ee82cbbe109cebd5894f52528b550d3d7b7afbfc1431  fix-exiv2.patch
"
